package com.share.user.api;

import com.share.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 用户服务Feign客户端
 *
 * @author share
 * @date 2024-04-16
 */
@FeignClient(contextId = "userInfoApiClient", value = "share-user")
public interface UserInfoApiClient {

    /**
     * 更新用户押金状态
     *
     * @param userId 用户ID
     * @param depositStatus 押金状态
     * @return 操作结果
     */
    @PutMapping("/user/info/deposit/{userId}/{depositStatus}")
    R<Integer> updateDepositStatus(@PathVariable("userId") Long userId, @PathVariable("depositStatus") String depositStatus);
} 